WP_Defender\Controller\Recaptcha D

Total Complexity 155
Dependencies 8
Dependents 3
Total lines 1,017
Lines of code 650
Logical lines of code 299
Comment lines 217
Methods 36
Properties 9

Methods 36

Method Rating Maintainability Complexity Lines of code
add_actions()
B
40 17 54
data_frontend()
A
39 13 64
load_recaptcha_preview()
A
34 8 115
display_recaptcha()
A
44 11 46
recaptcha_post_request()
S
50 7 28
validate_captcha_field_on_wpmu_registration()
S
56 7 17
validate_captcha_field_on_login()
S
56 6 20
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
remove_dublicate_scripts()
S
61 6 11
__construct()
S
56 5 17
get_api_url()
S
61 5 12
is_woocommerce_page()
S
61 5 12
display_login_recaptcha()
S
52 3 36
maybe_validate_captcha_for_lostpassword()
S
70 5 5
add_scripts()
S
50 3 29
dashboard_widget()
S
60 4 13
recaptcha_response()
S
58 3 15
save_settings()
S
55 2 21
validate_captcha_field_on_woo_registration()
S
63 3 10
validate_captcha_field_on_registration()
S
64 3 10
validate_captcha_field_on_comment()
S
67 3 8
validate_captcha_field_on_woo_login()
S
63 3 10
display_signup_recaptcha()
S
68 2 7
export_strings()
S
72 2 5
import_data()
S
69 2 7
script_loader_tag()
S
70 2 6
validate_captcha_field_on_lostpassword()
S
73 2 5
exclude_recaptcha_for_requests()
S
70 2 5
error_message()
S
70 2 6
get_model()
S
70 2 6
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
82 1 3
display_comment_recaptcha()
S
74 1 5
script_data()
S
76 1 4